package com.jie.creator.singleton.demo07;
/**
 * @description:测试类
 * @author: jie
 * @time: 2022/1/29 18:24
 */
public class Test {
    public static void main(String[] args) {
        //1、创建Singleton对象
        Singleton singleton = Singleton.INSTANCE;
        Singleton singleton1 = Singleton.INSTANCE;

        //2、判断内存地址是否相同
        System.out.println(singleton==singleton1);
    }
}
